const getBillManageer = (name) => {
	return {
		list: `/bill/${name}/list`,
		create: `/bill/${name}/create`,
		update: `/bill/${name}/update`,
		remove: `/bill/${name}/remove`,
		payCorres: `/bill/${name}/correspondingSubwebs`,
		paySubwebs: `/bill/${name}/Subwebs`,
		pay: `/bill/${name}/pay`,
		recordBillCreate: `/bill/${name}/recordBillCreate`,
		recordBillUpdate: `/bill/${name}/recordBillUpdate`,
		recordBill: `/bill/${name}/recordBill`,
		ik: `/bill/${name}/ik`,
		updateAccountAndUserInfo: `/bill/${name}/updateAccountAndUserInfo`,
		hasPermission: `/bill/${name}/hasPermission`,
		listImg: `/bill/${name}/listImg`,
		enable:`/bill/${name}/enable`,
		stop:`/bill/${name}/stop`,
		listDom:`/bill/${name}/listDom`
	}
}; 
export default {
	// 定义菜单相关的接口 URL
	menu: getBillManageer('menus'),
	// 定义登录、注册相关的接口 URL
	auth: {
		login: '/bill/auths/login',
		register: '/bill/auths/register',
	},
	// 定义账户相关的接口 URL
	account: {
		...getBillManageer('accounts')
	},
	// 组合URL
	combined: getBillManageer('combineds'),
	// 定义角色相关的接口URL
	role: getBillManageer('roles'),

	// 定义权限相关的接口URL
	permission: getBillManageer('permissions'),
	// 定义权限更新相关的接口URL
	role_permissions: getBillManageer('role_permissions'),
	// 定义账单相关的接口URL
	detail: getBillManageer('details'),
	// 获取当前用户的栋数和地址
	building: getBillManageer('buildings'),
	// 获取服务器列表
	server: getBillManageer('servers'),
	operation_record: getBillManageer('operation_records'),
	dynamic_bill: getBillManageer('dynamic_bills'),
	dynamictotal: getBillManageer('dynamic_total'),
};